package com.zmn.plat.common.dto.product.tariff.category;

import com.zmn.plat.common.dto.product.tariff.base.BaseTariffProductDIO;
import lombok.Data;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author tanbiao
 * @description：后台产品二级分类下的后台产品输入实体
 * @modifier
 * @since 2019/12/30 17:41
 **/
@Data
@Valid
@ToString(callSuper = true)
public class TariffProductCategoryDIO extends BaseTariffProductDIO {
    private static final long serialVersionUID = 8291352359344411863L;
    /**
     * 后台二级分类ID
     */
    @NotNull(message = "categId不能为空")
    @Positive(message = "categId必须为大于0的正整数")
    private Integer categId;

    /**
     * 服务品类id
     */
    @NotNull(message = "servCategId不能为空")
    @Positive(message = "servCategId必须为大于0的正整数")
    private Integer servCategId;

    /**
     * 故障服务项ID集合
     */
    @NotEmpty(message = "itemIds参数不能为空且个数不能超过100")
    @Size(min = 1, max = 100, message = "itemIds参数不能为空且个数不能超过100")
    private List<Integer> itemIds;

    /**
     * 品牌id
     */
    @Positive(message = "brandId必须为大于0的正整数")
    private Integer brandId;
}

